package com.diandian.backend.entrance.client.dto.dingding;

import java.io.Serializable;
import java.util.List;

public class OapiV2UserListResponse implements Serializable {
    private Long errcode;
    private String errmsg;
    private PageResult result;

    public OapiV2UserListResponse() {
    }

    public void setErrcode(Long errcode) {
        this.errcode = errcode;
    }

    public Long getErrcode() {
        return this.errcode;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public String getErrmsg() {
        return this.errmsg;
    }

    public void setResult(PageResult result) {
        this.result = result;
    }

    public PageResult getResult() {
        return this.result;
    }

    public boolean isSuccess() {
        return this.getErrcode() == null || this.getErrcode().equals(0L);
    }

    public static class ListUserResponse {
        private Boolean active;
        private Boolean admin;
        private String avatar;
        private Boolean boss;
        private List<Long> deptIdList;
        private Long deptOrder;
        private String email;
        private Boolean exclusiveAccount;
        private String exclusiveAccountType;
        private String extension;
        private Boolean hideMobile;
        private Long hiredDate;
        private String jobNumber;
        private Boolean leader;
        private String loginId;
        private String mobile;
        private String name;
        private String orgEmail;
        private String remark;
        private String stateCode;
        private String telephone;
        private String title;
        private String unionid;
        private String userid;
        private String workPlace;

        public ListUserResponse() {
        }

        public Boolean getActive() {
            return this.active;
        }

        public void setActive(Boolean active) {
            this.active = active;
        }

        public Boolean getAdmin() {
            return this.admin;
        }

        public void setAdmin(Boolean admin) {
            this.admin = admin;
        }

        public String getAvatar() {
            return this.avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public Boolean getBoss() {
            return this.boss;
        }

        public void setBoss(Boolean boss) {
            this.boss = boss;
        }

        public List<Long> getDeptIdList() {
            return this.deptIdList;
        }

        public void setDeptIdList(List<Long> deptIdList) {
            this.deptIdList = deptIdList;
        }

        public Long getDeptOrder() {
            return this.deptOrder;
        }

        public void setDeptOrder(Long deptOrder) {
            this.deptOrder = deptOrder;
        }

        public String getEmail() {
            return this.email;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public Boolean getExclusiveAccount() {
            return this.exclusiveAccount;
        }

        public void setExclusiveAccount(Boolean exclusiveAccount) {
            this.exclusiveAccount = exclusiveAccount;
        }

        public String getExclusiveAccountType() {
            return this.exclusiveAccountType;
        }

        public void setExclusiveAccountType(String exclusiveAccountType) {
            this.exclusiveAccountType = exclusiveAccountType;
        }

        public String getExtension() {
            return this.extension;
        }

        public void setExtension(String extension) {
            this.extension = extension;
        }

        public Boolean getHideMobile() {
            return this.hideMobile;
        }

        public void setHideMobile(Boolean hideMobile) {
            this.hideMobile = hideMobile;
        }

        public Long getHiredDate() {
            return this.hiredDate;
        }

        public void setHiredDate(Long hiredDate) {
            this.hiredDate = hiredDate;
        }

        public String getJobNumber() {
            return this.jobNumber;
        }

        public void setJobNumber(String jobNumber) {
            this.jobNumber = jobNumber;
        }

        public Boolean getLeader() {
            return this.leader;
        }

        public void setLeader(Boolean leader) {
            this.leader = leader;
        }

        public String getLoginId() {
            return this.loginId;
        }

        public void setLoginId(String loginId) {
            this.loginId = loginId;
        }

        public String getMobile() {
            return this.mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getName() {
            return this.name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getOrgEmail() {
            return this.orgEmail;
        }

        public void setOrgEmail(String orgEmail) {
            this.orgEmail = orgEmail;
        }

        public String getRemark() {
            return this.remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public String getStateCode() {
            return this.stateCode;
        }

        public void setStateCode(String stateCode) {
            this.stateCode = stateCode;
        }

        public String getTelephone() {
            return this.telephone;
        }

        public void setTelephone(String telephone) {
            this.telephone = telephone;
        }

        public String getTitle() {
            return this.title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getUnionid() {
            return this.unionid;
        }

        public void setUnionid(String unionid) {
            this.unionid = unionid;
        }

        public String getUserid() {
            return this.userid;
        }

        public void setUserid(String userid) {
            this.userid = userid;
        }

        public String getWorkPlace() {
            return this.workPlace;
        }

        public void setWorkPlace(String workPlace) {
            this.workPlace = workPlace;
        }
    }

    public static class PageResult {
        private Boolean hasMore;
        private List<ListUserResponse> list;
        private Long nextCursor;

        public PageResult() {
        }

        public Boolean getHasMore() {
            return this.hasMore;
        }

        public void setHasMore(Boolean hasMore) {
            this.hasMore = hasMore;
        }

        public List<ListUserResponse> getList() {
            return this.list;
        }

        public void setList(List<ListUserResponse> list) {
            this.list = list;
        }

        public Long getNextCursor() {
            return this.nextCursor;
        }

        public void setNextCursor(Long nextCursor) {
            this.nextCursor = nextCursor;
        }
    }
}
